#ifndef __UTILS_H__
#include <vector>
#include <string>
namespace mdk
{
    std::vector<std::string> split(std::string str, std::string pattern);
    std::string &replaceAWithX(std::string &str, std::string spl, std::string dest);
    std::string &trim(std::string &s, std::string split = " ");
    template <typename... Args>
    std::string format(const std::string &format, Args... args)
    {
        size_t size = snprintf(nullptr, 0, format.c_str(), args...) + 1;
        std::string _Str(size, '\0');
        _Str.resize(snprintf(&_Str[0], size, format.c_str(), args...));

        return _Str;
    }
} // namespace gconvert
#endif
